<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>main_entiity</title>
<script>
    $(document).ready(function() {
        $('#post').click(function() {
        	debugger;
        	var url = "http://dev.xplatform.tech:20020/x_okr_assemble_control/servlet/export/statisticreportcontent/stream";
        	var form = $("<form>");   //定义一个form表单
        	var ipt_centerId = $("<input type='text' name='centerId' value='"+ $("#centerId").val() +"'/>");   //定义一个form表单
        	var ipt_reportCycle = $("<input type='text' name='reportCycle' value='"+ $("#reportCycle").val() +"'/>");   //定义一个form表单
        	var ipt_statisticTime = $("<input type='text' name='statisticTime' value='2016-12-23'/>");   //定义一个form表单
            form.attr('style', 'display:none');   //在form表单中添加查询参数
            form.attr('method', 'post');
            form.attr('action', url );
            form.append( ipt_centerId );  //将表单放置在web中 
            form.append( ipt_reportCycle );  //将表单放置在web中 
            form.append( ipt_statisticTime );  //将表单放置在web中 
            $('body').append(form);  //将表单放置在web中 
            form.submit();
        });
    });
</script>
</head>
<body>
<div style="float: left; width: 720px;">
	<div style="width: 100%;">
		<table border="1" style="width:100%">
	    	<tr>
				<td>centerId:</td>
				<td><input type="text" id="centerId" style="width:95%"/></td>
			</tr>
			<tr>
				<td>reportCycle:</td>
				<td><input type="text" id="reportCycle" style="width:95%"/></td>
			</tr>
			<tr>
				<td>statisticTime:</td>
				<td><input type="text" id="statisticTime" style="width:95%"/></td>
			</tr>
	    	<tr>
				<td colspan="2">
					<button id="post">POST</button>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<textarea id="content" style="width:97%;height:300px">{}</textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<textarea id="result" style="width:97%;height:400px"></textarea>
				</td>
			</tr>
	    </table>
	</div>
</div>
		
		
</body>
</html>